<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader Host: Elf32_Phdr Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader Host
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Host Tools for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('struct_elf32___phdr.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="struct_elf32___phdr-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Elf32_Phdr Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>ELF program header.  
 <a href="struct_elf32___phdr.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="apps_2elftosb_2common_2_e_l_f_8h_source.html">ELF.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a8b1d2942ddb9abcb85db1429b5116923"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8b1d2942ddb9abcb85db1429b5116923"></a>
Elf32_Word&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_elf32___phdr.html#a8b1d2942ddb9abcb85db1429b5116923">p_type</a></td></tr>
<tr class="memdesc:a8b1d2942ddb9abcb85db1429b5116923"><td class="mdescLeft">&#160;</td><td class="mdescRight">What type of segment this header describes. <br /></td></tr>
<tr class="separator:a8b1d2942ddb9abcb85db1429b5116923"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac590d4c4b26104216e53058b5b03eef0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac590d4c4b26104216e53058b5b03eef0"></a>
Elf32_Off&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_elf32___phdr.html#ac590d4c4b26104216e53058b5b03eef0">p_offset</a></td></tr>
<tr class="memdesc:ac590d4c4b26104216e53058b5b03eef0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Offset in bytes from start of file to the first byte of the segment. <br /></td></tr>
<tr class="separator:ac590d4c4b26104216e53058b5b03eef0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01a298ebc899bcf9c23211a7bf1155a6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a01a298ebc899bcf9c23211a7bf1155a6"></a>
Elf32_Addr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_elf32___phdr.html#a01a298ebc899bcf9c23211a7bf1155a6">p_vaddr</a></td></tr>
<tr class="memdesc:a01a298ebc899bcf9c23211a7bf1155a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtual address at which the segment will reside in memory. <br /></td></tr>
<tr class="separator:a01a298ebc899bcf9c23211a7bf1155a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af18f0a179a5fca09e3c04bcdce3fac2f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af18f0a179a5fca09e3c04bcdce3fac2f"></a>
Elf32_Addr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_elf32___phdr.html#af18f0a179a5fca09e3c04bcdce3fac2f">p_paddr</a></td></tr>
<tr class="memdesc:af18f0a179a5fca09e3c04bcdce3fac2f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Physical address, for systems where this is relevant. <br /></td></tr>
<tr class="separator:af18f0a179a5fca09e3c04bcdce3fac2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9151f2e11001284bf1c7d2d2659555c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac9151f2e11001284bf1c7d2d2659555c"></a>
Elf32_Word&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_elf32___phdr.html#ac9151f2e11001284bf1c7d2d2659555c">p_filesz</a></td></tr>
<tr class="memdesc:ac9151f2e11001284bf1c7d2d2659555c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of bytes of file data the segment consumes. May be zero. <br /></td></tr>
<tr class="separator:ac9151f2e11001284bf1c7d2d2659555c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada1cdd3d6ccb79a17bed0e3c21379c84"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ada1cdd3d6ccb79a17bed0e3c21379c84"></a>
Elf32_Word&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_elf32___phdr.html#ada1cdd3d6ccb79a17bed0e3c21379c84">p_memsz</a></td></tr>
<tr class="memdesc:ada1cdd3d6ccb79a17bed0e3c21379c84"><td class="mdescLeft">&#160;</td><td class="mdescRight">Size in bytes of the segment in memory. May be zero. <br /></td></tr>
<tr class="separator:ada1cdd3d6ccb79a17bed0e3c21379c84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35c457e6828894b7b275730593802050"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a35c457e6828894b7b275730593802050"></a>
Elf32_Word&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_elf32___phdr.html#a35c457e6828894b7b275730593802050">p_flags</a></td></tr>
<tr class="memdesc:a35c457e6828894b7b275730593802050"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flags relevant to the segment. <br /></td></tr>
<tr class="separator:a35c457e6828894b7b275730593802050"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd09d9e4297b13fc94fd57d09f2a9f70"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afd09d9e4297b13fc94fd57d09f2a9f70"></a>
Elf32_Word&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_elf32___phdr.html#afd09d9e4297b13fc94fd57d09f2a9f70">p_align</a></td></tr>
<tr class="memdesc:afd09d9e4297b13fc94fd57d09f2a9f70"><td class="mdescLeft">&#160;</td><td class="mdescRight">Alignment constraint for segment addresses. Possible values are 0 and positive powers of 2. <br /></td></tr>
<tr class="separator:afd09d9e4297b13fc94fd57d09f2a9f70"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>ELF program header. </p>
<p>An executable or shared object file's program header table is an array of structures, each describing a segment or other information the system needs to prepare the program for execution. An object file segment contains one or more sections. Program headers are meaningful only for executable and shared object files. A file specifies its own program header size with the ELF header's <a class="el" href="struct_elf32___ehdr.html#afa2289f96d86fcc568a3b1f40cc8953e" title="Size in bytes of one entry in the program header table. ">Elf32_Ehdr::e_phentsize</a> and <a class="el" href="struct_elf32___ehdr.html#a360898812db1655f8cb8258780d9df5b" title="Number of entries in the program header table. ">Elf32_Ehdr::e_phnum</a> members. </p>
</div><h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="afd09d9e4297b13fc94fd57d09f2a9f70"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Elf32_Word Elf32_Phdr::p_align</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Alignment constraint for segment addresses. Possible values are 0 and positive powers of 2. </p>

</div>
</div>
<a class="anchor" id="ac9151f2e11001284bf1c7d2d2659555c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Elf32_Word Elf32_Phdr::p_filesz</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Number of bytes of file data the segment consumes. May be zero. </p>

</div>
</div>
<a class="anchor" id="a35c457e6828894b7b275730593802050"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Elf32_Word Elf32_Phdr::p_flags</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Flags relevant to the segment. </p>

</div>
</div>
<a class="anchor" id="ada1cdd3d6ccb79a17bed0e3c21379c84"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Elf32_Word Elf32_Phdr::p_memsz</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Size in bytes of the segment in memory. May be zero. </p>

</div>
</div>
<a class="anchor" id="ac590d4c4b26104216e53058b5b03eef0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Elf32_Off Elf32_Phdr::p_offset</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Offset in bytes from start of file to the first byte of the segment. </p>

</div>
</div>
<a class="anchor" id="af18f0a179a5fca09e3c04bcdce3fac2f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Elf32_Addr Elf32_Phdr::p_paddr</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Physical address, for systems where this is relevant. </p>

</div>
</div>
<a class="anchor" id="a8b1d2942ddb9abcb85db1429b5116923"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Elf32_Word Elf32_Phdr::p_type</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>What type of segment this header describes. </p>

</div>
</div>
<a class="anchor" id="a01a298ebc899bcf9c23211a7bf1155a6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Elf32_Addr Elf32_Phdr::p_vaddr</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Virtual address at which the segment will reside in memory. </p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="apps_2elftosb_2common_2_e_l_f_8h_source.html">apps/elftosb/common/ELF.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="struct_elf32___phdr.html">Elf32_Phdr</a></li>
    <li class="footer">Generated on Mon Mar 7 2016 16:49:51 for Kinetis Bootloader Host by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
